package com.boot.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;





@Entity
@Table(name="task_users")
public class User implements Serializable  {
	
	private static final long serialVersionUID = 1L;
	
	@Id
	
	private String userId ;
	
	private String userName;
	
	private String passWord;
	
	private String realName;
	
	@Column(nullable = false, unique = true,name="userId")
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	
	@Column(nullable = false, unique = true,name="userName")
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	
	@Column(nullable = false,name="passWord")
	public String getPassWord() {
		return passWord;
	}
	public void setPassWord(String passWord) {
		this.passWord = passWord;
	}
	
	@Column(nullable = false, unique = true,name="realName")
	public String getRealName() {
		return realName;
	}
	public void setRealName(String realName) {
		this.realName = realName;
	}
	
	
	

}
